
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<% String path = request.getContextPath(); %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>套餐详情</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
}
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
}
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
}
.table-responsive {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
}
.table thead th {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  font-weight: 500;
  padding: 1.2rem;
  text-align: center;
  position: relative;
}
.table thead th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.3);
}
.table tbody td {
  padding: 1rem;
  text-align: center;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s;
}
.table tbody tr:hover td {
  background: rgba(72, 149, 239, 0.1);
  transform: scale(1.01);
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50rem;
}
.badge-primary {
  color: #fff;
  background-color: var(--primary);
}
.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1em;
}
.plan-name {
  font-weight: 500;
  color: var(--secondary);
  font-size: 1.2em;
}
.header {
  text-align: center;
  margin-bottom: 2rem;
}
.header h1 {
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.header p {
  color: #6c757d;
}
.footer {
  text-align: center;
  margin-top: 2rem;
  color: #6c757d;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .glass-card {
    padding: 1rem;
  }
  .table thead th, .table tbody td {
    padding: 0.75rem;
  }
}
</style>
</head>
<body>
<div class="glass-card">
  <div class="header">
    <h1><i class="fas fa-mobile-alt"></i> 套餐详情</h1>
  </div>
  
  <div class="table-responsive">
    <form action="${pageContext.request.contextPath}" method="post">
      <table class="table">
        <thead>
          <tr>
            <th><i class="fas fa-tag"></i> 套餐名称</th>
            <th><i class="fas fa-phone"></i> 剩余通话时长</th>
            <th><i class="fas fa-wifi"></i> 剩余流量</th>
            <th><i class="fas fa-sms"></i> 剩余短信条数</th>
            <th><i class="fas fa-money-bill-wave"></i> 月资费</th>
            <th><i class="fas fa-phone-slash"></i> 超通话资费</th>
            <th><i class="fas fa-comment-slash"></i> 超短信资费</th>
            <th><i class="fas fa-network-wired"></i> 超流量资费</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td class="plan-name">${plan.plan_name}</td>
            <td>${RemMin} <span class="badge badge-primary">分钟</span></td>
            <td>${RemData} <span class="badge badge-primary">MB</span></td>
            <td>${RemMes} <span class="badge badge-primary">条</span></td>
            <td class="price">¥${plan.monthly_fee}</td>
            <td class="price">¥${plan.over_call_rate}/分钟</td>
            <td class="price">¥${plan.over_sms_rate}/条</td>
            <td class="price">¥${plan.over_data_rate}/MB</td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>
</body>
</html>
